package com.fangcun.mapper;

import java.util.List;
import java.util.Map;

import com.fangcun.entity.AdminMenuPermission;

public interface AdminMenuPermissionMapper {
	int deleteByPrimaryKey(Long id);

	int insert(AdminMenuPermission record);

	int insertSelective(AdminMenuPermission record);

	AdminMenuPermission selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(AdminMenuPermission record);

	int updateByPrimaryKey(AdminMenuPermission record);

	List<AdminMenuPermission> selectByUserId(Long userId);

	/** 后台查询菜单 @Param("userId") Long userId, @Param("parentId") Long parentId **/
	List<AdminMenuPermission> selectForMenu(Map<String, Object> param);

	List<AdminMenuPermission> selectbyList(AdminMenuPermission record);
}